﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateSection.aspx.cs"
    Inherits="RichECMS.ServerPages.Section.UpdateSection" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>河南锐之旗CMS网站内容管理平台系统</title>
    <meta name="Keywords" content="河南锐之旗CMS网站内容管理平台系统" />
    <meta name="Description" content="河南锐之旗CMS网站内容管理平台系统" />
    <meta name="auther" content="河南锐之旗信息技术有限公司|河南企汇网信息技术有限公司" />
    <link href="../../sysCommon/sysStyle/Pages.css" type="text/css" rel="stylesheet" />
    <link href="../../sysCommon/sysStyle/style.css" type="text/css" rel="stylesheet" />
    <script src="../../sysCommon/sysScripts/jquery/1.7.2/Jquery.js" type="text/javascript"></script>
    <script src="../../Keditor/kindeditor-min.js" type="text/javascript"></script>
    <script src="../../Keditor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/parent3.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/commompage.js" type="text/javascript"></script>
    <script src="../../sysCommon/sysScripts/SectionEdit.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            KindEditor.lang({
                customforms: '自定义表单'
            });
            var editor = KindEditor.create('textarea[id="txtContent"]', {
                uploadJson: '../../IHandler/UpAgAttachHandler.ashx',
                filterMode: false,
                items: ['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
         '|', 'justifyleft', 'justifycenter', 'justifyright',
        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen'],
                cssPath: ['../../Keditor/plugins/code/prettify.css'],
                allowImageUpload: true
            });

            $(".tylelistspan .expandtyleradio").change(function () {
                $("#hideChooseType").val($(this).attr("etype"));
            })
            $(".datemoduleTitleAdd").click(function () {
                if ($("#hideChooseType").val() == "") {
                    alert("请选择类型");
                    return false;
                }
                if ($("#datemoduleID").val() == "") {
                    alert("请填写ID标识 只能是用字母");
                    return false;
                }
                if ($("#datemoduleTitle").val() == "") {
                    alert("请选择描述");
                    return false;
                }
                boxtitle = $("#datemoduleTitle").val();
                boxId = $("#datemoduleID").val();
                boxtype = $("#hideChooseType").val();
                editor.appendHtml("<span class='mycustomforms' style='margin:3px 0px 3px 0px;height:20px;display:block;'>" + boxtitle + "：<input type='text' id='" + boxId + "' title='" + boxtitle + "' stype='" + boxtype + "' style='height:20px;' /></span>");
            })
        });
    </script>
    <style type="text/css">
        #txtdatamodle
        {
            color: Green;
        }
        .ke-icon-customforms
        {
            background-image: url(../skins/default/default.gif);
            background-position: 0px -672px;
            width: 16px;
            height: 16px;
        }
        .rediobox table
        {
            float: left;
        }
        .chcheckbox input, label
        {
            vertical-align: middle;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="main_body">
            <div class="right_body">
                <div class="right_top" style="background: none;">
                    <a href="###">CMS内容管理平台</a>><span style="color: #417DB7">编辑栏目</span>
                </div>
                <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%"
                    class="edit">
                    <tr>
                        <td align="left" valign="middle" height="36">
                            <div class="edit_title">
                                <div class="tit_name">
                                    栏目信息</div>
                                <div class="notice">
                                    （标记为<span style="height: 36px;"><img src="../../sysCommon/sysImages/systerm/notice.gif"
                                        width="10" height="10" style="padding: 0 5px;" /></span>为必填项）</div>
                                <div class="menu">
                                    <a href="###">
                                        <img src="../../sysCommon/sysImages/systerm/menu_up.gif" alt="向上关闭" width="36" height="36" /></a>
                                    <!--<img src="../../sysCommon/sysImages/systerm/menu_down.gif" width="36" height="36" />-->
                                </div>
                                <div style="float: left; margin-left: 40px;">
                                    <a href="AddSection.aspx" class="AddSection" id="AddChildSection" runat="server"
                                        style="color: #b9c67b; font-size: 12px; height: 20px; line-height: 20px; display: block;
                                        background-color: #5c4b3f; margin: 10px 0px 10px 0px; padding: 0px 3px 0px 3px;
                                        float: left;">添加子栏目</a>
                                    <div style="color: #b9c67b; font-size: 12px; height: 20px; line-height: 20px; display: block;
                                        background-color: #5c4b3f; margin: 10px 0px 10px 0px; padding: 0px 3px 0px 3px;
                                        float: left;">
                                        <asp:LinkButton ID="LinkButtonDeleteThis" runat="server" ForeColor="#b9c67b" OnClick="DeleteThisSection">删除当前</asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: auto; padding-top: 10px; padding-left: 20px; padding-bottom: 10px;">
                            <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    当前名称：
                                                </td>
                                                <td align="left" valign="middle" width="265">
                                                    <span style="padding: 0 5px; color: #417DB7; font-weight: bold;">
                                                        <asp:Literal ID="LitSecstionName" runat="server"></asp:Literal></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    中文标题：
                                                </td>
                                                <td align="left" valign="middle" width="265">
                                                    <input name="" type="text" style="width: 150px;" id="txtTitleCN" runat="server" /><span
                                                        style="padding: 0 5px;"><img src="../../sysCommon/sysImages/systerm/notice.gif" width="10"
                                                            height="10" /></span>
                                                </td>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    英文名称：
                                                </td>
                                                <td align="left" valign="middle" width="185">
                                                    <input name="" type="text" style="width: 150px;" id="txtTitleEn" runat="server" /><span
                                                        style="padding: 0 5px;"><img src="../../sysCommon/sysImages/systerm/notice.gif" width="10"
                                                            height="10" /></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    栏目模版：
                                                </td>
                                                <td align="left" valign="middle" width="265">
                                                    <asp:DropDownList ID="DropDownListSection" runat="server" Width="150">
                                                    </asp:DropDownList>
                                                    <span style="padding: 0 5px;">
                                                        <img src="../../sysCommon/sysImages/systerm/notice.gif" width="10" height="10" /></span>
                                                </td>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    文章模版：
                                                </td>
                                                <td align="left" valign="middle" width="185">
                                                    <asp:DropDownList ID="DropDownListArticle" runat="server" Width="150">
                                                    </asp:DropDownList>
                                                    <span style="padding: 0 5px;">
                                                        <img src="../../sysCommon/sysImages/systerm/notice.gif" width="10" height="10" /></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：
                                                </td>
                                                <td align="left" valign="middle" width="265" class="rediobox">
                                                    <asp:RadioButtonList ID="RadioButtonListSection" runat="server" RepeatLayout="Table"
                                                        RepeatDirection="Horizontal" TextAlign="Right">
                                                        <asp:ListItem Selected="True" Text="文章列表" Value="1"></asp:ListItem>
                                                        <asp:ListItem Selected="False" Text="栏目简介" Value="2"></asp:ListItem>
                                                        <asp:ListItem Selected="False" Text="栏目发布" Value="3"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：
                                                </td>
                                                <td align="left" valign="middle" width="185" class="rediobox">
                                                    <asp:RadioButtonList ID="RadioButtonListArticle" runat="server" RepeatLayout="Table"
                                                        RepeatDirection="Horizontal" TextAlign="Right">
                                                        <asp:ListItem Selected="True" Text="启用" Value="1"></asp:ListItem>
                                                        <asp:ListItem Selected="False" Text="禁用" Value="2"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trPath" runat="server" visible="false">
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    所在路径：
                                                </td>
                                                <td align="left" valign="middle" width="265">
                                                    <asp:TextBox ID="txtPerentPath" runat="server" Style="width: 148px"></asp:TextBox>
                                                </td>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    页面名称：
                                                </td>
                                                <td align="left" valign="middle" width="300">
                                                    <input name="txtPageName" type="text" style="width: 150px"  id="txtPageName"
                                                        runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trPathInfo" runat="server" visible="false">
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    路径说明：
                                                </td>
                                                <td align="left" valign="middle" width="630">
                                                    <span class="taginfo">开启路径功能后，如果所在路径为空，页面名称不为空，页面将发布到根目录下，如果两则都为空，则会使用默认路径</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                 <tr id="trReferOn" runat="server" visible="false">
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    栏目引用：
                                                </td>
                                                <td align="left" valign="middle" width="630">
                                                    <asp:CheckBox ID="CKBoxReferSection" runat="server" Text="启用栏目引用" AutoPostBack="true"
                                                        OnCheckedChanged="SetRefer" />
                                                    <span id="spanReferSectionName" runat="server" visible="false" style="margin: 20px;">
                                                        当前引用栏目：<span id="ReferSectionTitle" style="margin-right: 10px;"><asp:Literal ID="LitReferSectionName"
                                                            runat="server" Text="无"></asp:Literal></span>(<font><asp:LinkButton ID="LBntReSelect"
                                                                runat="server" Text="重新选择" OnClick="ReferSectionReselect"></asp:LinkButton></font>)</span>
                                                    <span style="margin-left: 10px; color: Green">注：不允许引用主版块</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trReferSelect" runat="server" visible="false">
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    选择栏目：
                                                </td>
                                                <td align="left" valign="middle" width="630">
                                                    <asp:DropDownList ID="DropDownListMainSectionlist" runat="server">
                                                    </asp:DropDownList>
                                                    <span id="spanChildSec"></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    录入时间：
                                                </td>
                                                <td align="left" valign="middle" width="265">
                                                    <asp:TextBox ID="txtDateInTime" runat="server" Style="width: 148px"></asp:TextBox>
                                                    <span style="padding: 0 5px;">
                                                        <img src="../../sysCommon/sysImages/systerm/notice.gif" width="10" height="10" /></span>
                                                </td>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序：
                                                </td>
                                                <td align="left" valign="middle" width="300">
                                                    <input name="txtSortNo" type="text" style="width: 150px" value="9999" id="txtSortNo"
                                                        runat="server" />
                                                    <span style="padding: 0 5px;">
                                                        <img src="../../sysCommon/sysImages/systerm/notice.gif" width="10" height="10" /></span>
                                                    <span style="padding: 0 5px;">数字越大越靠前！</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                 <tr>
                                    <td align="left" valign="middle" height="30">
                                        <table width="auto" border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    备注信息：
                                                </td>
                                                <td align="left" valign="middle" width="265">
                                                    <asp:TextBox ID="txtRemark" runat="server" Style="width: 148px"></asp:TextBox>
                                                </td>
                                                <td align="left" valign="middle" width="65" height="30">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td align="left" valign="middle" width="300">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trdatalabeltoolbar" runat="server">
                                    <td style="width: auto; padding-top: 10px; padding-bottom: 10px;">
                                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 600px;">
                                            <tr>
                                                <td align="left" valign="top" width="65">
                                                    字段描述：
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;">
                                                    <asp:Button ID="ButSetDataLabel" runat="server" Text="设置个性描述" OnClick="ButSetDataLabel_Click" />
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;">
                                                    <asp:Button ID="ButResetDataLabel" runat="server" Text="重置个性描述" OnClick="ButResetDataLabel_Click" />
                                                </td>
                                                <td align="left" class="chcheckbox" valign="top" style="padding-top: 0px; padding-left: 0px;
                                                    padding-bottom: 5px;">
                                                    <asp:CheckBox ID="CkboxAllowSyncDatLabel" Text="允许更新数据描述" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trDataLabel" runat="server">
                                    <td style="width: auto; padding-top: 10px; padding-bottom: 10px;">
                                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                                            <tr>
                                                <td align="left" valign="top" width="65">
                                                    描述模型：
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;"
                                                    height="300">
                                                    <textarea name="txtdataLabel" cols="4" rows="4" style="width: 600px; height: 300px;"
                                                        id="txtdataLabel" runat="server"></textarea>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trdatamodeltoolbar" runat="server">
                                    <td style="width: auto; padding-top: 10px; padding-bottom: 10px;">
                                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 600px;">
                                            <tr>
                                                <td align="left" valign="top" width="65">
                                                    模型更新：
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;">
                                                    <asp:Button ID="ButtonGetModel" runat="server" Text="获取数据模型" OnClick="ButtonGetModel_Click" />
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;">
                                                    <asp:Button ID="ButtonSyncModle" runat="server" Text="重构数据模型" OnClick="ButtonSyncModle_Click" />
                                                </td>
                                                <td align="left" class="chcheckbox" valign="top" style="padding-top: 0px; padding-left: 0px;
                                                    padding-bottom: 5px;">
                                                    <asp:CheckBox ID="CkboxAllowSyncDataModel" Text="允许更新数据模型" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trDataPrototype" runat="server">
                                    <td style="width: auto; padding-top: 10px; padding-bottom: 10px;">
                                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: auto">
                                            <tr>
                                                <td align="left" valign="top" width="65">
                                                    内容模型：
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;"
                                                    height="300">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <div style="line-height: 20px; height: 20px;">
                                                                    ID标识：<input type="text" id="datemoduleID" style="width: 70px;" />
                                                                    描述文本：<input type="text" id="datemoduleTitle" style="width: 70px;" />
                                                                    <input type="button" value="插入" class="datemoduleTitleAdd" />
                                                                    <span>提示：</span><span class="taginfo">节点名ID必须使用字母并且不能以xml开头，不能使用其他字符</span>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div style="line-height: 20px;">
                                                                    类型：<asp:Literal ID="Littypechoose" runat="server"></asp:Literal></div>
                                                                <asp:HiddenField ID="hideChooseType" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <textarea name="txtcontent" cols="4" rows="4" style="width: 600px; height: 300px;"
                                                                    id="txtContent" runat="server"></textarea>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr id="trDataModel" runat="server">
                                    <td style="width: auto; padding-top: 10px; padding-bottom: 10px;">
                                        <table border="0" align="left" cellpadding="0" cellspacing="0" style="width: 100%">
                                            <tr>
                                                <td align="left" valign="top" width="65">
                                                    数据模型：
                                                </td>
                                                <td align="left" valign="top" style="padding-top: 0px; padding-left: 0px; padding-bottom: 5px;"
                                                    height="300">
                                                    <textarea name="txtdatamodle" cols="4" rows="4" style="width: 600px; height: 300px;"
                                                        id="txtdatamodle" runat="server"></textarea>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="40" valign="middle" style="padding-left: 20px;">
                                        <table width="265" border="0" align="left" cellpadding="0" cellspacing="0" height="40">
                                            <tr>
                                                <td align="left" valign="top" width="45">
                                                    <div style="width: 45px;">
                                                    </div>
                                                </td>
                                                <td align="left" valign="middle" width="100">
                                                    <asp:ImageButton ID="ImageButtonOk" ImageUrl="../../sysCommon/sysImages/systerm/button_5.jpg"
                                                        runat="server" AlternateText="提交信息" Width="87" Height="27" ToolTip="提交信息" OnClick="SubmitBtnHander" />
                                                </td>
                                                <td align="left" valign="top" width="20">
                                                    <div style="width: 20px;">
                                                    </div>
                                                </td>
                                                <td align="left" valign="middle" width="100">
                                                    <asp:ImageButton ID="ImageButtonReset" ImageUrl="../../sysCommon/sysImages/systerm/button_6.jpg"
                                                        runat="server" AlternateText="重置信息" Width="87" Height="27" ToolTip="重置信息" OnClick="ImageButtonReset_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="ChangeSecHidden" runat="server" Value="" />
    </form>
</body>
</html>
